package com.example.interfaces.dto;

import java.time.LocalDate;
import java.time.LocalTime;
import com.example.infrastructure.excel.ExcelExportable;
import com.example.infrastructure.excel.ExcelImportable;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 医生排班表 DTO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@Schema(name = "DoctorSchedulesDTO", description = "医生排班表DTO")
public class DoctorSchedulesDTO implements ExcelExportable, ExcelImportable {

    @Schema(description = "医生ID")
    @ExcelProperty("医生ID")
    @NotNull(message = "医生ID不能为空")
    private Long doctorId;
    
    @Schema(description = "排班日期")
    @ExcelProperty("排班日期")
    private LocalDate scheduleDate;
    
    @Schema(description = "时段：1上午，2下午，3晚上")
    @ExcelProperty("时段：1上午，2下午，3晚上")
    private Byte period;
    
    @Schema(description = "开始时间")
    @ExcelProperty("开始时间")
    private LocalTime startTime;
    
    @Schema(description = "结束时间")
    @ExcelProperty("结束时间")
    private LocalTime endTime;
    
    @Schema(description = "总号源数")
    @ExcelProperty("总号源数")
    @NotNull(message = "总号源数不能为空")
    private Integer totalNum;
    
    @Schema(description = "剩余号源数")
    @ExcelProperty("剩余号源数")
    @NotNull(message = "剩余号源数不能为空")
    private Integer availableNum;
    
    @Schema(description = "状态：1可约，0停诊")
    @ExcelProperty("状态：1可约，0停诊")
    private Byte status;
    
    @Schema(description = "租户编号")
    @ExcelProperty("租户编号")
    @NotNull(message = "租户编号不能为空")
    private Long tenantId;
    
}
